import request from '@/utils/request'

// 查询广播消息通知列表
export function listBroadcast(query) {
  return request({
    url: '/broadcast/broadcast/list',
    method: 'get',
    params: query
  })
}

// 查询广播消息通知详细
export function getBroadcast(messageId) {
  return request({
    url: '/broadcast/broadcast/' + messageId,
    method: 'get'
  })
}

// 新增广播消息通知
export function addBroadcast(data) {
  return request({
    url: '/broadcast/broadcast',
    method: 'post',
    data: data
  })
}

// 修改广播消息通知
export function updateBroadcast(data) {
  return request({
    url: '/broadcast/broadcast',
    method: 'put',
    data: data
  })
}

// 删除广播消息通知
export function delBroadcast(messageId) {
  return request({
    url: '/broadcast/broadcast/' + messageId,
    method: 'delete'
  })
}
